import Vue from 'vue'
import Router from 'vue-router'
import 	Home from '@/components/home/Home'
import 	City from '@/components/city/City'
import detail from '@/components/detail/detail'
import detailImg from '@/components/detail_img/detail_img'
import photo from '@/components/detail_img/photo'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
    	path:'/city',
    	name:'/city',
    	component:City
    },
    {
      path:"/detail",
      name:"/detail",
      component:detail
    },
    {
      path:"/detailImg",
      name:"/detailImg",
      component:detailImg
    },
    {
      path:"/photo",
      name:"/photo",
      component:photo
    }
  ],
  scrollBehavior(to,from,savedPosition){
    return{
      x:0,
      y:0
    }
  }
})
